package indexer;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;

public class SeedList {
	public static void GetTheList() {
		FetchFromFile();
	}

	private static void FetchFromFile() {
		try {
			BufferedReader in = new BufferedReader(new FileReader(
					Common.SeedListFilename));
			String line;
			while ((line = in.readLine()) != null) {
				try {
					Spider.GlobalURLsToVisit.add(Common
							.GetHttpAuthority(new URI(Common.HTTP + line)));
				} catch (URISyntaxException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			in.close();
		} catch (IOException e) {
		}
	}
}
